package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-05-30 9:33
 */
public class Test08 {
    public static void main(String[] args) {
        Animal animal=new Cat();
        animal.eat();

        Dog dog=new Dog();
        animal=dog;
        animal.eat();
    }
}
